package com.sanben.category.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sanben.common.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author cyh
 * @description: 类别分类表实体类
 * @date: 2020-08-11
 */
@Data
@ApiModel(value = "Category对象", description = "类别分类表")
@TableName("category")
public class Category extends BaseEntity {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "类别名称")
    private String name;

    @ApiModelProperty(value = "1类别 2分类")
    private Integer status;

    @ApiModelProperty(value = "排序")
    private Integer sort;

}
